package com.service.impl;

import com.dao.RbacPermDao;
import com.service.RbacPermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RbacPermServiceImpl implements RbacPermService {
    private RbacPermDao rbacPermDao;
    @Autowired
    public void setRbacPermDao(RbacPermDao rbacPermDao) {
        this.rbacPermDao = rbacPermDao;
    }

    @Override
    public Set<String> findByUsername(String username) {
        return rbacPermDao.findByUsername(username);
    }
}
